import {
	defineConfig
}from 'vite'
//配置后不支持 App.vue,需要配置uni组件
import uni from "@dcloudio/vite-plugin-uni"
console.log('配置文件执行')
export default defineConfig({
	plugins:[uni()],
	server:{
		proxy:{
			'/api':{
				target:'http:// 172.30.1.113:8080',
				// target:'http://localhost:3030',
				// target:'http://172.30.1.202:8080',
				changeOrigin:true,
				rewrite:(path)=>path.replace(/^\/api/,'')
			}
		}
	}
})